SRC_DIR=src
LIB_DIR=lib
BUILD_DIR=build
IMG_DIR=imgs

CLASSPATH=${BUILD_DIR}

all:
	-mkdir ${BUILD_DIR}
	javac -d ${BUILD_DIR} -cp ${CLASSPATH} ${SRC_DIR}/*.java

clean: distclean
	-rm -rf ${BUILD_DIR}

distclean:
	-rm -rf ${LIB_DIR}

test:
	java -cp ${CLASSPATH} Darsi

test2:
	java -cp ${CLASSPATH} Darsi second

jar:
	-mkdir ${LIB_DIR}
	jar -cmf mainClass ${LIB_DIR}/Darsi.jar -C ${BUILD_DIR} . imgs
